<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1 {
	width: 195px;
}

.select_width {
	width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">基本信息（金额单位：万元）</div>
<table class="table01 t_css" width="100%" border="0" cellpadding="0"  cellspacing="1">
	
	
	<tr>
		<td  align="right"><span class="color_red">*</span>项目名称：</td>
		<td  colspan="7">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>

	<tr>
	    <td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td colspan="7">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr>

	<tr>
		<td  align="right">项目总投资：</td>
		<td colspan="2"><input type="text" label="项目总投资"
		    class="gray valueEqual:input_total:source_total" disabled
			style="text-align: right; width: 200px" name="budgets/input_total"
			id="input_total"  value="<x:out select="$xmlData/data/budgets/input_total" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td colspan="2"   align="right"><span class="color_red">*</span>其中本企业投资：</td>
		<td ><input type="text" style="text-align: right; width: 80px"
			name="budgets/already_input_total" id="input_already"
			class="required  " label="其中本企业投资"
			onchange="countFundAuto('input_','already,teamwork','total'); budget();"
			value="<x:out select="$xmlData/data/budgets/already_input_total" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td   align="right">占比（%）：</td>
		<td ><input type="text" style="text-align: right; width: 80px"
			name="budgets/already_input_total_pre" id="input_already_pre"
			class="gray" disabled
		    value="<x:out select="$xmlData/data/budgets/already_input_total_pre" />" /></td>
	</tr>
	<tr >
		<td align="right" nowrap><span class="color_red">*</span>合作单位名称：</td>
		<td colspan="2"><input type="text" maxlength="100" style=" width: 200px" name="budgets/teamwork_name"
			id="teamwork_name" class="required"  label="合作单位名称" value="<x:out select="$xmlData/data/budgets/teamwork_name" />" /></td>
		<td colspan="2" align="right" nowrap><span class="color_red">*</span>合作单位投资：</td>
		<td ><input type="text" style="text-align: right; width: 80px"
			name="budgets/teamwork_budget" id="input_teamwork"
			class="required"  label="合作单位投资"
			onchange="countFundAuto('input_','already,teamwork','total'); budget();"
			value="<x:out select="$xmlData/data/budgets/teamwork_budget" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td width="10%" align="right" nowrap>占比（%）：</td>
		<td ><input type="text" style="text-align: right; width: 80px"
			name="budgets/teamwork_budget_pre" id="input_teamwork_pre"
			class="gray" disabled
		    value="<x:out select="$xmlData/data/budgets/teamwork_budget_pre" />" /></td>
	</tr>
	
	<tr>
		<td align="right">资金来源：</td>
		<td colspan="7">
		<input type="hidden"
			style="text-align: right; width: 80px" name="budgets/input_total_2"
			id="source_total_2" disabled label="资金来源+申请金额"
			value="<x:out select="$xmlData/data/budgets/input_total_2" />"
			onfocus="InitInput.setNumber(this,9,4,2)" />
		<input type="text" style="text-align: right;width: 200px"
			name="budgets/source_total" id="source_total" class="gray" disabled
			label="资金来源"
			value="<x:out select="$xmlData/data/budgets/source_total" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		
	</tr>
	<tr align="center">
		<td rowspan="2"><span class="color_red">*</span>自有资金</td>
		<td rowspan="2"><span class="color_red">*</span>银行贷款</td>
		<td colspan="4">已获政府资助资金</td>
		<td rowspan="2" colspan="2"><span class="color_red">*</span>其他资金</td>
	</tr>
	<tr align="center">
		<td><span class="color_red">*</span>国家</td>
		<td><span class="color_red">*</span>省级</td>
		<td><span class="color_red">*</span>市级</td>
		<td><span class="color_red">*</span>区级</td>
	</tr>
	<tr align="center">
		<td><input type="text" style="text-align: right; width: 80px"
			name="budgets/own_fund" id="source_own" 
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','total');countFundAuto('source_','total,funds','total_2');"
			class="required" label="自有资金"
			value="<x:out select="$xmlData/data/budgets/own_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 80px"
			name="budgets/bank_fund" id="source_bank"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','total');countFundAuto('source_','total,funds','total_2');"
			class="required" label="银行贷款"
			value="<x:out select="$xmlData/data/budgets/bank_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 80px"
			name="budgets/other_fund" id="source_other"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','total');countFundAuto('source_','total,funds','total_2');"
			class="required" label="已获政府资助资金->国家"
			value="<x:out select="$xmlData/data/budgets/other_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 80px"
			name="budgets/country_fund" id="source_country"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','total');countFundAuto('source_','total,funds','total_2');"
			class="required" label="已获政府资助资金->省级"
			value="<x:out select="$xmlData/data/budgets/country_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 80px"
			name="budgets/provincial_fund" id="source_provincial"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','total');countFundAuto('source_','total,funds','total_2');"
			class="required" label="已获政府资助资金->市级"
			value="<x:out select="$xmlData/data/budgets/provincial_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>

		<td><input type="text" style="text-align: right; width: 80px"
			name="budgets/city_fund" id="source_city"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','total');countFundAuto('source_','total,funds','total_2');"
			class="required" label="已获政府资助资金->区级"
			value="<x:out select="$xmlData/data/budgets/city_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
		<td colspan="2"><input type="text"
			style="text-align: right; width: 80px" name="budgets/area_fund"
			id="source_area"
			onchange="countFundAuto('source_','own,bank,other,country,provincial,city,area','total');countFundAuto('source_','total,funds','total_2');"
			class="required " label="其他资金"
			value="<x:out select="$xmlData/data/budgets/area_fund" />"
			onfocus="InitInput.setNumber(this,9,4,2)" /></td>
	
	</tr>
		
	
	<tr>
		<td   align="right" width="15%"><span class="color_red">*</span>立项所在地：</td>
		<td  colspan="7">
			<c:set var="address"><x:out select="$xmlData/data/proposal/address_value" /></c:set>
			<cpt:select id="address"  key="project_place"  className="select_width" value="${address}" onChange="initControlValue(this.id);setProjectPlace();"></cpt:select>
			<input type="hidden" id="address_value" name="proposal/address_value" class="required" value="${address}" label="立项所在地">
			<input type="hidden" name="proposal/address_name" value="<x:out select="$xmlData/data/proposal/address_name" />"> 
			<span id="address_name_other_span"><input type="text" id="address_name_other" name="proposal/address_name_other" class="input_css required" maxlength="20" label="立项所在地其他地区" value="<x:out select="$xmlData/data/proposal/address_name_other" />"/></span>
		</td>
	</tr>
	<tr>
	    <td align="right" nowrap><span class="color_red">*</span>是否拥有知识产权：</td>
		<td colspan="3">
		<c:set var="property"><x:out select="$xmlData/data/proposal/property_value" /></c:set>
		<cpt:select id="property"  key="boolean"  className="select_width" value="${property}" ></cpt:select>
		<input type="hidden" id="property_value" name="proposal/property_value" class="required" value="${property}" label="是否拥有知识产权">
		<input type="hidden" name="proposal/property_name" value="<x:out select="$xmlData/data/proposal/property_name" />">
		
		</td>
		<td  align="right"><span class="color_red">*</span>立项报备层级：</td>
		<td nowrap colspan="3">
			<c:set var="project_level"><x:out select="$xmlData/data/proposal/project_level_value" /></c:set>
			<cpt:select id="project_level"  key="project_level"  className="select_width" value="${project_level}" ></cpt:select>
			<input type="hidden" id="project_level_value" name="proposal/project_level_value" class="required" value="${project_level}" label="立项报备层级">
			<input type="hidden" name="proposal/project_level_name" value="<x:out select="$xmlData/data/proposal/project_level_name" />">
		</td>
	</tr>
	
	<tr>
	<td align="right" width="15%"><span class="color_red">*</span>作品类型：</td>
		<td width="35%" colspan="3"><c:set var="works_type">
				<x:out select="$xmlData/data/proposal/works_type_value" />
			</c:set> <cpt:select id="works_type" key="works_type"
				className="select_width" value="${works_type}"></cpt:select> <input
			type="hidden" id="works_type_value"
			name="proposal/works_type_value" class="required"
			value="${works_type}" label="作品类型"> <input type="hidden"
			name="proposal/works_type_name"
			value="<x:out select="$xmlData/data/proposal/works_type_name" />">
		</td>
	<td align="right"><span class="color_red">*</span>许可证：</td>
	<td nowrap colspan="3" valign="middle">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="license" label="发行许可证号" value="01" /><span style="vertical-align: middle;">发行许可证号</span></label> 
	&nbsp;&nbsp;&nbsp;&nbsp;
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="license" label="公映许可证" value="02" /><span style="vertical-align: middle;">公映许可证</span></label> 
	&nbsp;&nbsp;&nbsp;&nbsp;
	<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="license" label="其他" value="03" /><span style="vertical-align: middle;">其他</span></label>
	<input type="hidden" name="proposal/license_value" id="license_value" class="required" value="<x:out select="$xmlData/data/proposal/license_value" />" label="许可证" /> 
	<input type="hidden" name="proposal/license_name" id="license_name" value="<x:out select="$xmlData/data/proposal/license_name" />"  /></td>
	</tr>
	<tr>
		
		<td align="right"><span class="color_red">*</span>播出频道/渠道：</td>
		<td colspan="3">
		<c:set var="broadcast_channel"><x:out select="$xmlData/data/proposal/broadcast_channel_value" /></c:set>
		<cpt:select id="broadcast_channel"  key="broadcast_channel"  className="select_width" value="${broadcast_channel}" onChange="initControlValue(this.id);setPrizeName();"></cpt:select>
		<input type="hidden" id="broadcast_channel_value" name="proposal/broadcast_channel_value" class="required" value="${broadcast_channel}" label="播出频道/渠道">
		<input type="hidden" name="proposal/broadcast_channel_name" value="<x:out select="$xmlData/data/proposal/broadcast_channel_name" />"> 
		</td>
		<td align="right"><span id="prize_name_label"><span class="color_red">*</span>播出时段：</span></td>
		<td colspan="3">
		<input id="prize_name_input" name="proposal/prize_name"   label="播出时段" type="text"  class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/prize_name" />"/> 
        </td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>播出时长：</td>
		<td colspan="3"><input name="proposal/broadcast_time" label="播出时长" type="text"
			class="input_css required" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/broadcast_time" />" /></td>
	   <td  align="right" nowrap><span class="color_red">*</span>首轮播出时间：</td>
		<td  colspan="3">
			<c:set var="prize_date"><x:out select="$xmlData/data/proposal/prize_date" /></c:set>
			<cpt:date id="prize_date" name="proposal/prize_date" className="required date" label="首轮播出时间"  value="${prize_date}" ></cpt:date> 
		</td>
	</tr>
	
	
	<%-- <tr>
	<td align="right"><span class="color_red">*</span>动画形式：</td>
	
	<td nowrap colspan="3" valign="middle">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="animation_type" label="二维" value="01" /><span style="vertical-align: middle;">二维</span></label> 
	&nbsp;&nbsp;&nbsp;&nbsp;
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="animation_type" label="三维" value="02" /><span style="vertical-align: middle;">三维</span></label> 
	<input type="hidden" name="proposal/animation_type_value" id="animation_type_value" class="required" value="<x:out select="$xmlData/data/proposal/animation_type_value" />" label="动画形式" /> 
	<input type="hidden" name="proposal/animation_type_name" id="animation_type_name" value="<x:out select="$xmlData/data/proposal/animation_type_name" />"  /></td>
	<td align="right" nowrap><span class="color_red">*</span>漫画页数/游戏代码行数：</td>
		<td colspan="3"><input id="comic_pages"
			name="proposal/comic_pages" label="漫画页数/游戏代码行数" type="text"
			class="input_css required" maxlength="100"
			value="<x:out select="$xmlData/data/proposal/comic_pages" />" />
		</td>
	</tr>
 --%>

</table>
<div class="t_bar">申请项目资金情况</div>
<table class="table01 t_css" width="100%" border="0" cellpadding="0"  cellspacing="1">
	
	<tr>
		<td  align="right" nowrap  width="15%">项目类别：</td>
		<td   width="52%"><x:out select="$xmlData/data/proposal/grant_name" />
		</td> 
		<td  align="right" >支持方式：</td>
		<td   >
			<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
	</tr>

	<tr>
	
		<td  align="right"  nowrap><span class="color_red">*</span>申请金额（万元）：</td>
		<td  >
			<input id="source_funds" class="required " onchange="countFundAuto('source_','total,funds','total_2');" name="proposal/total_funds" style="text-align:right;" onfocus="InitInput.setNumber(this,7,4,2)" label="申请金额" type="text"  class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/proposal/total_funds" />"/> 
		</td>
		<td  align="right">资金级次：</td>
		<td >
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	<td  align="right">归口管理部门：</td>
		<td  >
			<span name="proposal/org_name">无锡市文化广电新闻出版局</span> 
		</td>
	    <td  align="right">管理类别：</td>
		<td  >
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span>
		</td>
		
	</tr>
	<tr>
	<td  align="right"><span class="color_red">*</span>项目所属类别：</td>
		<td nowrap colspan="3">
			<c:set var="category"><x:out select="$xmlData/data/proposal/category_value" /></c:set>
		    <cpt:checkbox key="category" name="category" repeatColumn="9" style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox>
			<input type="hidden" id="category_value" name="proposal/category_value" class="required" value="${category}" label="项目所属类别">
			<input type="hidden" name="proposal/category_name" value="<x:out select="$xmlData/data/proposal/category_name" />">
		</td>
	</tr>
		<tr style="display:none"><td></td></tr>
	<tr>
		<td  align="right"><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="3">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="3">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
		
	</tr>
	</table>
<div class="t_bar">申请资助依据条款</div>
	<table  width="100%" border="0" cellpadding="0" cellspacing="1">
	
	<tr>
		<td >
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<div class="t_bar"><span class="color_red">*</span>项目概述：简要概括项目主要成就、创新性、发展前景以及预期对行业带动作用、社会经济发展的贡献（限300字）</div>
<table  width="100%" border="0" cellpadding="0" cellspacing="1">
	
	<tr>
		<td ><textarea id="brief" name="proposal/summary" rows=7 cols=150 label="项目概述" class="textarea required maxlength:300"><x:out select="$xmlData/data/proposal/summary" /></textarea>
		<input type="hidden" name="proposal/summary_hidden" id="proposal/summary_hidden" value="<x:out select="$xmlData/data/proposal/summary_hidden" />" /></td>
	</tr>

</table>
<br />
<div class="t_bar">人员信息</div>
<table class="table01 t_css" width="100%" border="0" cellpadding="0"
	id="basicInfo" cellspacing="1">
	
	<tr>
		<td align="right"><span class="color_red">*</span>项目联系人：</td>
		<td><input name="proposal/contact_psn_cname" label="项目联系人"
			type="text" required class="input_css required" maxlength="20"
			value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />" />
		</td>
		<td align="right"><span class="color_red">*</span>联系电话：</td>
		<td><input name="proposal/contact_psn_tel" label="联系电话"
			type="text" required class="input_css required" maxlength="20"
			value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />" />
		</td>
		<td align="right"><span class="color_red">*</span>联系手机：</td>
		<td><input name="proposal/contact_psn_mobile" label="联系手机"
			type="text" required maxlength="11" required
			class="input_css required mobile" maxlength="20"
			value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />" />
		</td>
		<td align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td><input name="proposal/contact_psn_email" label="电子邮箱"
			type="text" required class="input_css required email" maxlength="50"
			value="<x:out select="$xmlData/data/proposal/contact_psn_email" />" />
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
</table>
<script type="text/javascript">
<!--
$(document).ready(function(){
	setPrizeName("init");
	
	setProjectPlace("init");
});

function budget(){
	
	var budget1=$("#input_already").val();
	var budget2=$("#input_total").val();
	var budget3=$("#input_teamwork").val();
	$("#input_already_pre").val(formatVal(budget1*100/budget2));
	$("#input_teamwork_pre").val(formatVal(budget3*100/budget2));	
}

function setPrizeName(op){
	var channel_value= $("#broadcast_channel_value").val();
	if(op) channel_value = '${broadcast_channel}';
	$("#prize_name_input").removeClass("required");
	if(channel_value == '10'){
		$("#prize_name_label").hide();
		$("#prize_name_input").hide();
		$("#prize_name_input").val("");
		$("#prize_name_input").removeClass("required");
	}else{
		$("#prize_name_label").show();
		$("#prize_name_input").show();
		if(!op) $("#prize_name_input").val("19-22时");
		$("#prize_name_input").addClass("required");
	}
}

function setProjectPlace(op){
	var address = $("#address_value").val();
	if(op) address = '${address}';
	$("#address_name_other").removeClass("required");
	if(address == '02'){
		$("#address_name_other_span").show();
		$("#address_name_other").css("display","");
		$("#address_name_other").addClass("required");
	}else{
		$("#address_name_other_span").hide();
		$("#address_name_other").removeClass("required");
		$("#address_name_other").val("");
	}
}
//-->
</script>


